﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GeocacheDownloader
{
    public class Cache
    {
        private string _code, _longitude, _latitude, _name, _cacheType;

        public Cache(string code, string longitude, string latitude, string name, string cacheType)
        {
            _name = name;
            _code = code;
            _longitude = longitude;
            _latitude = latitude;
            _cacheType = cacheType;
        }

        public Cache() { }

        public bool IsEmpty()
        {
            return string.IsNullOrEmpty(_code) && string.IsNullOrEmpty(_latitude) && string.IsNullOrEmpty(_longitude);
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        } 

        public string Latitude
        {
            get { return _latitude; }
            set { _latitude = value; }
        }

        public string CacheType
        {
            get { return _cacheType; }
            set { _cacheType = value; }
        } 

        public string Longitude
        {
            get { return _longitude; }
            set { _longitude = value; }
        }

        public string Code
        {
            get { return _code; }
            set { _code = value; }
        }
    }
}
